package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "talk_records_vote",comment = "聊天对话记录（投票消息表）")
public class TalkRecordsVote {
    @AcColumn(name = "id",comment = "投票ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "record_id",defaultValue = "0",comment = "消息记录ID",type = ColumnTypeEnums.INT)
    private Integer record_id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "title", defaultValue = "", comment = "投票标题", type = ColumnTypeEnums.VARCHAR,length = 50, isNull = false)
    private String title;

    @AcColumn(name = "answer_mode",defaultValue = "0",comment = "答题模式[0:单选;1:多选;]",type = ColumnTypeEnums.TINYINT)
    private Integer answer_mode;

    @AcColumn(name = "answer_option", defaultValue = "", comment = "答题选项", type = ColumnTypeEnums.VARCHAR,length = 300, isNull = false)
    private String answer_option;

    @AcColumn(name = "answer_num",defaultValue = "0",comment = "应答人数",type = ColumnTypeEnums.INT)
    private Integer answer_num;

    @AcColumn(name = "answered_num",defaultValue = "0",comment = "已答人数",type = ColumnTypeEnums.INT)
    private Integer answered_num;

    @AcColumn(name = "status",defaultValue = "0",comment = "投票状态[0:投票中;1:已完成;]",type = ColumnTypeEnums.TINYINT)
    private Integer status;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;
}
